#include "T_TwoScene.h"
#include "T_App.h"

T_TwoScene::T_TwoScene(void)
{
	SetGraphicsName("TwoScene");
}

T_TwoScene::~T_TwoScene(void)
{
}

bool T_TwoScene::OnInit(AF_CBundle* pParam)
{
	m_pimgBack = AF_CImage::Create("./res/TwoScene.bmp");
	AddGraphics(m_pimgBack);

	return true;
}

void T_TwoScene::OnKeyUp( int nKeyCode )
{
	if(nKeyCode == 116) // "t"
		AF_pTHEWINSOW->TurnScene(((T_App*)AF_pTHEAPP)->GetOneScene());
	else if(nKeyCode == 115) // "s"
		AF_pTHEWINSOW->CallScene(((T_App*)AF_pTHEAPP)->GetSubScene());
}

void T_TwoScene::OnUpdate()
{
	int a = 0;
}
